import Vue from 'vue'
import Router from 'vue-router'
import commodityList from '@/components/commodityCard'
import item from '@/components/item'

Vue.use(Router)

export default new Router({
  mode: 'history',
  linkActiveClass: 'active',
  routes: [
    {
      path: '/',
      name: 'commodityList',
      component: commodityList
    },
    {
      path: '/item',
      name: 'item',
      component: item
    }
  ]
})
